package com.safewind.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.safewind.dao.SendQuartzDao;
import com.safewind.model.SendQuartz;
import com.safewind.service.ISendQuartzService;

@Service("sendQuartzService")
public class SendQuartzServiceImpl implements ISendQuartzService {

	@Resource
	private SendQuartzDao sendQuartzDao;

	@Override
	public void addSendQuartz(SendQuartz sq) {
		sendQuartzDao.insertSelective(sq);
	}

	@Override
	public List<SendQuartz> getAllByUserId(String userId) {
		return sendQuartzDao.getAllByUserId(userId);
	}

	@Override
	public List<SendQuartz> getAllByTime(Date from, Date to) {
		return sendQuartzDao.getAllByTime(from, to);
	}

}
